package com.sqx.modules.app.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sqx.common.utils.Result;
import com.sqx.modules.app.entity.UserCertification;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.RequestAttribute;

public interface UserCertificationService extends IService<UserCertification> {
    Result insert(Long userId, String name, String idNumber, String front, String back,Integer classify,String phone,String address,String shopImg,String shopName,String addressImg,String startTime,String endTime,String shopType,String longitude,String latitude);

    Result inserts(UserCertification userCertification);

    Result isInsert(Long userId);

    Result queryCertification(Long page, Long limit, String status, String name,Integer classify,
                              Integer isRecommend,Integer onLine,String city ,Integer classifyId,
                              String longitude, String latitude,String shopName,String phone,Integer sort);

    Result queryUserCertification(IPage iPage, String name,String phone,Integer classify,String shopName);

    Result auditorUserCertification(Long status, Long id, String remek);

//    Result queryInsert(Long userId,Integer classify);
    Result queryInsert(Long userId);

    UserCertification getCertificationInfo(Long userId);

    Result updateCertification(UserCertification userCertification);

    Result selectCertificationById(Long id,String longitude,String latitude);

}
